package com.towexin.application.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.towexin.application.system.domain.User;

import java.util.List;
import java.util.Map;

public interface UserService extends IService<User> {

    boolean saveOrUpdateOne(User user);

    boolean deleteOne(String id);

    boolean setRole(String uId, String rId);

    User selectByUserName(String userName);
    IPage<Map<String, Object>> selectAndPage(int page, int limit, String nickname);

    boolean verificationUserName(User user);

    boolean changeStatus(String userName, Boolean status, Integer num);

    String login(String username, String password, boolean rememberMe);

    List<String> noUserIds();

    String getNickNameByUserName(String userName);

    boolean setAllOffline();
}
